package com.xc.quickstart.api.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "登录请求")
public class LoginQuery {

    @ApiModelProperty(value = "手机号")
    @NotNull(message = "mobile不能为空")
    @NotBlank(message = "mobile不能为空")
    private String mobile;

    @ApiModelProperty(value = "验证码")
    @NotNull(message = "code不能为空")
    @NotBlank(message = "code不能为空")
    private String code;
}
